package cn.myzf.chatapi.wechat.protocol;



import cn.myzf.chatapi.xtools.common.XTools;

import java.io.File;

public class ReqCheckUpload {
    public  BaseRequest BaseRequest;
    public  String FileMd5;
    public  String FileName;
    public  long FileSize;
    public  int FileType;
    public String FromUserName;
    public String ToUserName;


    public ReqCheckUpload(BaseRequest baseRequest, File file, String fromUserName, String toUserName) {
        this.BaseRequest = baseRequest;
        this.FileMd5 = XTools.md5(file);
        this.FileName = file.getName();
        this.FileSize = file.length();
        this.FileType = 7;
        this.FromUserName = fromUserName;
        this.ToUserName = toUserName;
    }
}
